home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magic - An Insider's View
/
Magic - An Insider's View.iso
/
pc
/
insiders
/
shared.dir
/
00917_Field_917.txt
< prev
next >
Wrap
Text File
|
1995-09-24
|
2KB
|
74 lines
on Printext
global TheText,pChar
global printer,gPropFont
if the machineType = 256 then
--we're running in windows!
put "arial" into gPropFont
put "courier new" into gMonoFont
if not objectP(printer) then
openxlib (the pathName & "VARIOUS" & pChar & "pmatic.dll")
put PrintOMatic(mNew) into printer
end if
else
put "helvetica" into gPropFont
put "courier" into gMonoFont
if not objectP(printer) then
openxlib (the pathName & "VARIOUS" & pChar & "PRINTO.XBJ")
put PrintOMatic(mNew) into printer
end if
end if
if not objectP(printer) then
Alert "There is no currently selected printer. Printing features will be disabled."Â
&return&return&"Error code = "&string(printer)
else
-- cursor 4 --because this much styled text takes a while to compile
printer (mReset)
printer (mSetMargins,72,60,72,48)
put printer(mGetPageWidth) into w
put printer(mGetPageheight) into h
printer (mSetTextFont,"helvetica")
printer (mSetTextSize,10)
printer (mSetTextStyle,"normal,italic")
if the machineType = 256 then
set NumOfPages=(the number of lines of theText)/55
if ((the number of lines of theText) mod 55)>0 then setÂ
NumOfPages=NumOfPages+1
repeat with i=1 to NumOfPages
printer (mNewPage)
--page header
printer (mDrawText,"MAGIC - AN INSIDER'S VIEW",0,8)
printer (mLine, 0,11,w,11)
printer (mTextBox,0,30,w,h-24,true)
end repeat
AppendText(TheText)
else
--page header
-- printer (mDrawText,"CLICK MULTIMEDIA - A Disciple's Diary",0,8)
printer(mAppendText, TheText)
end if
printer (mPicture, the picture of cast "Magic",Â
380, -30, 380+the width of cast "Magic", -30+the height of cast "Magic")
if printer(mDoJobSetup) = true then
updatestage
printer (mPrint)
end if
-- cursor -1
if objectp(printer) then printer(mDispose)
if the machineType = 256 then
closexlib (the pathName & "VARIOUS" & pChar & "pmatic.dll")
else
closexlib (the pathName & "VARIOUS" & pChar & "PRINTO.XBJ")
end if
end if
RefreshQt
end